package com.vrv.vap.resource.service;

import org.springframework.security.core.Authentication;

import javax.servlet.http.HttpServletRequest;

/**
 * @author wh1107066
 * @date 2021/6/21 15:13
 */
public interface PermissionService {
    /**
     * 权限判断
     * @param request  请求
     * @param authentication  认证信息
     * @return  有权限返回true， 无权限返回false
     */
    boolean hasPermission(HttpServletRequest request, Authentication authentication);
}
